package com.axjy.web;

import com.axjy.pojo.Role;
import com.axjy.service.RoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by asus on 2018/1/11.
 */
@RestController
@RequestMapping("/sys/role")
public class RoleHandler {

    @Resource
   private  RoleService roleService;


    @GetMapping("/list")
    public List<Role> list(){
        return roleService.list();
    }





}
